package com.insideClass.exceptions;

/**
 * @author 13699
 */
public class MultipleReturns {
    public static void f(int i){
        System.out.println("Initialization that requires cleanup");
        try{
            System.out.println("Point 1");
             if(i==1){
                 return;
             }
        }finally {
            System.out.println("Performing cleanup");
        }
    }

    public static void main(String[] args) {
        for(int i=1;i<=4;i++){
            f(i);
        }
    }
}
